package com.budee.boke.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.budee.boke.dao.RelArticleArticleTypeMapper;
import com.budee.boke.model.RelArticleArticleType;
import com.budee.boke.service.RelArticleArticleTypeService;
@Service
public class RelArticleArticleTypeServiceImpl implements
		RelArticleArticleTypeService {

	@Autowired
	private RelArticleArticleTypeMapper relArticleArticleTypeDao;
	
	public void add(RelArticleArticleType relArticleArticleType) {
		relArticleArticleTypeDao.insert(relArticleArticleType);

	}

	public void update(RelArticleArticleType relArticleArticleType) {
		relArticleArticleTypeDao.updateByPrimaryKey(relArticleArticleType);

	}

	public void delete(int id) {
		relArticleArticleTypeDao.deleteByPrimaryKey(id);

	}

	public RelArticleArticleType find(int id) {
		
		return relArticleArticleTypeDao.selectByPrimaryKey(id);
	}

}
